import http from '@/utils/http';
// import { request } from '@/utils/request';

/**
 * @description: 获取分类数据
 * @param {*} id 分类id
 * @return {*}
 */
export const findTopCategoryAPI = (id) => {
  return http({
    url: '/category',
    params: {
      id,
    },
  });
};
